-- GENERATED SPELL FOR [Gorr'Dim] --


function spell0_20732(pUnit, Event) --@Blast Wave,Self--
pUnit:FullCastSpellOnTarget(15091,pUnit)
pUnit:RegisterEvent('Sorts_20732', 6259, 1)
end

function spell1_20732(pUnit, Event) --@Bloodmaul Intoxication,n/a--
pUnit:FullCastSpellOnTarget(35240,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20732', 25000, 1)
end

function spell2_20732(pUnit, Event) --@Fiery Intellect,Self--
pUnit:FullCastSpellOnTarget(35917,pUnit)
pUnit:RegisterEvent('Sorts_20732', 662, 1)
end

function spell3_20732(pUnit, Event) --@Frostbolt,n/a--
pUnit:FullCastSpellOnTarget(9672,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20732', 7000, 1)
end

function Sorts_20732(pUnit, Event)
local choix_sorts_20732 = math.random(0, 3)
if choix_sorts_20732 == 0 then
pUnit:RegisterEvent('spell0_20732', 1, 1)
end
if choix_sorts_20732 == 1 then
pUnit:RegisterEvent('spell1_20732', 1, 1)
end
if choix_sorts_20732 == 2 then
pUnit:RegisterEvent('spell2_20732', 1, 1)
end
if choix_sorts_20732 == 3 then
pUnit:RegisterEvent('spell3_20732', 1, 1)
end
end

function mob20732_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20732', math.random(1500, 3000), 1)
end

function mob20732_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20732_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20732_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20732, 1, 'mob20732_Action')
RegisterUnitEvent(20732, 2, 'mob20732_Leave')
RegisterUnitEvent(20732, 3, 'mob20732_Kill')
RegisterUnitEvent(20732, 4, 'mob20732_Die')
